package org.niugang.bean;

import java.io.Serializable;

import org.niugang.constant.CodeConstant;

/**
 * controller层返回对象
 * 
 * @author niugang
 *
 * @param <T>
 */
public class ResultBean<T> implements Serializable, Result {

	private static final long serialVersionUID = 1L;
	/**
	 * 放回的信息
	 */
	private String message = "success";
	/**
	 * 返回码
	 */
	private Integer status = CodeConstant.SUCCESS.getValue();

	/**
	 * 返回的数据
	 */
	private T data;

	public ResultBean() {
		super();
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
